<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<title>TreeNode</title>
<link rel="stylesheet" type="text/css" href="${ctx }/ext-2.0.2/resources/css/ext-all.css" />
<script type="text/javascript" src="${ctx }/ext-2.0.2/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="${ctx }/ext-2.0.2/ext-all.js"></script>
<script type="text/javascript" src="${ctx }/ext-2.0.2/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx }/js/extdemo/treenode.js"></script>
<script type="text/javascript">
var PersonInfoWindow = Ext.extend(Ext.Window, {
	URL : "",
	constructor : function(cfg) {
		if (cfg == null)
			cfg = {};
		Ext.apply(this, cfg);
		alert(this.URL);
		PersonInfoWindow.superclass.constructor.call(this, {
			plain : true,
			modal : true,
			width : 318,
			closeAble : true,
			closeAction : "hide",
			buttonAlign : "center",
			URL : this["URL"],
			items : 'asdfasdf',
			buttons : [ {
				text : "确定",
				handler : this.onSumbitClick,
				scope : this
			}, {
				text : "取消",
				handler : function() {
					this.close();
				},
				scope : this
			} ]
		});
	},
	getForm : function() {
		return this.formPanel.getForm();
	},
	onSumbitClick : function() {
		alert(this.URL);
	}
});

Ext.onReady( function() {
	alert("s");
	var win = new PersonInfoWindow({URL : 'http://www.baidu.com'});
	win.show();
});
</script>
</head>

<body>
</body>
</html>